<div class="card">
    <div class="card-header">
        管理系统登录
    </div>
    <div class="card-block">
        <form #loginForm="ngForm">
            <div class="form-group row">
                <div class="col-xs-12">
                    <input class="form-control" type="text" value="" id="username" name="username"
                           [(ngModel)]="username"
                           placeholder="用户名"
                           required/>
                </div>
            </div>
            <div class="form-group row">
                <div class="col-xs-12">
                    <input class="form-control" type="password" placeholder="密码" id="password" name="password"
                           [(ngModel)]="password" required/>
                </div>
            </div>
            <div class="form-group row">
                <button type="button" class="btn btn-default" (click)="login()" [disabled]="!loginForm.form.valid">登录
                </button>
            </div>
        </form>
    </div>
</div>